const authState = {
  namespaced: true, // 开启命名空间
  state: {
    token: '',
  },
  mutations: {
    setToken (state, data) {
      state.token = data
    },
  },
  actions: {},
  getters: {
    token: state => state.token,
  }
}
export default authState 